# This file should contain all the record creation needed to seed the database with its default values.
# The data can then be loaded with the rake db:seed (or created alongside the db with db:setup).
#
# Examples:
#
#   cities = City.create([{ name: 'Chicago' }, { name: 'Copenhagen' }])
#   Mayor.create(name: 'Emanuel', city: cities.first)

User.where(name: 'admin', phone: '13988887777').first_or_create! do |user|
  user.name, user.phone, user.password , user.area , user.group ='admin', '13988887777', '12345678' , '1' , '2'
end

# 2016/06/26
# 订单页面初始化
CodeTable.create name:'地域' , default_value:'重庆'
CodeTable.create name:'分组' , default_value:'分组一号'